package org.sea.mybator;

import java.util.List;

import org.sea.mybator.model.JavaDao;
import org.sea.mybator.model.JdbcType;
import org.sea.mybator.service.CreateJavaDao;
import org.sea.mybator.service.CreateJavaEntity;
import org.sea.mybator.service.CreateJdbcXml;
import org.sea.mybator.util.Constants;

public class AutoCreate {

    public static void main(String[] args) {
        String tableNameFull = Constants.tableNameFull;
        
        CreateJdbcXml createJdbcXml = new CreateJdbcXml();
        List<JdbcType> jdbcTypeList = createJdbcXml.init(tableNameFull);
        createJdbcXml.parse(jdbcTypeList, tableNameFull);
        
        CreateJavaEntity createJavaEntity = new CreateJavaEntity();
        List<JavaDao> javaDaoList = createJavaEntity.init(tableNameFull);
        createJavaEntity.parse(javaDaoList, tableNameFull);
        
        CreateJavaDao createJavaDao=new CreateJavaDao();
        createJavaDao.parse(tableNameFull);
        
    }
}
